home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
os2
/
clone200.zip
/
install.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-11-06
|
2KB
|
90 lines
/* Install Clone Cleaner Version 2.00
----------------------------------------------------
INSTALL CLONE CLEANER
Leave Clone Cleaner Files in Currect Dir and
Create an Desktop Shadow of the .exe and .inf files
----------------------------------------------------
Copyright (c) 1996
Edward J. March Jr.
1206 South Birch Drive
Mt. Prospect, IL 60056
*/
echo off
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
Call SysCls
/*
// Determine the Current path (from where install.cmd is running from)
// Perhaps from From a Floppy Disk such as A:\
*/
parse source . . argv0 .
temp = reverse(argv0)
temp = substr(temp, pos('\', temp))
Len = length(temp)
If Len > 3 then Do
temp = substr(temp, 2)
End
CurrentPath = reverse(temp)
LastChar = Right(CurrentPath,1)
Say ' This Will Create a Desktop Folder that has shadows of the'
Say ' ========================================================='
Say ' '
Say ' CloneCln.exe and CloneCln.Inf file from this directory.'
Say ' ========================================================='
Say 'This Dir is ' CurrentPath
Say ' '
Say 'Press "Y" To Continue, or any other key to stop, Continue ?'
Pull yesno
if yesno <> "Y" & yesno <> "y" Then Do
Say "!!! Cancel !!!"
Say "No Desktop Folder or shadows objects were created"
Say 'Press Any Key To Exit...'
SysGetKey()
Exit
End
/*
// SHADOW SEVERAL FILES FROM CurrentPath TO THE NEWLY CREATED FOLDER ON THE DESKTOP
//EJM
*/
FolderId = '<CloneCleaner200>'
Rc = SysCreateObject('WPFolder','Clone Cleaner','<WP_DESKTOP>' ,'OBJECTID='FolderId,'U')
Rc = SysOpenObject(FolderId , 'ICON', 1);
rc1 = SysCreateShadow( 'CloneCln.exe', FolderId )
Call ShadowTheFile 'CloneCln.Exe'
Call ShadowTheFile 'CloneCln.Inf'
Call ShadowTheFile 'ReadMe.Txt'
Say 'Press Any Key To Exit...'
SysGetKey()
Exit
/*
** Make Shadow Of File into Desktop Folder
*/
ShadowTheFile:
Arg Name
File = CurrentPath'\'Name
rc1 = SysCreateShadow( File, FolderId )
if rc1 = 1 Then Do
Say 'Shadow of 'File 'Created OK'
End
if rc1 <> 1 Then Do
Say '**** Error ' rc1 ' Shadowing 'File
End
Return rc1